<template>
    <div>
        <el-select v-model="value" placeholder="请选择">
            <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
            </el-option>
        </el-select>
        <el-input v-model="keyword" placeholder="请输入内容"></el-input>
        <el-button @click="search()">搜索</el-button>
    </div>
</template>

<script>
export default {
  props:{
    options:Array
  },
  data() {
    return {
      
      value: "",
      keyword:''
    };
  },
  methods:{
      search(){
          this.$emit('search',this.value,this.keyword);
      }
  }
};
</script>

<style lang="scss" scoped>
.el-select{
    width:200px;
}
.el-input{
    width: 300px;
}
</style>